<template>
  <div>
    <!-- 按钮 -->
    <el-button type="primary" @click="dialogTableVisible = true">+ 新增</el-button>
    <el-button class="el-icon-delete">删除</el-button>

    <el-table
      ref="multipleTable"
      :data="tableData"
      tooltip-effect="dark"
      style="width: 100%"
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" width="55"> </el-table-column>
      <el-table-column label="菜单名称" width="120">
        <template slot-scope="scope">{{ scope.row.date }}</template>
      </el-table-column>
      <el-table-column prop="name" label="菜单类型" width="120">
      </el-table-column>
      <el-table-column prop="address" label="排序" show-overflow-tooltip>
      </el-table-column>
      <el-table-column prop="address" label="应用菜单" show-overflow-tooltip>
      </el-table-column>
      <el-table-column prop="address" label="组件" show-overflow-tooltip>
      </el-table-column>
      <el-table-column prop="address" label="菜单路径" show-overflow-tooltip>
      </el-table-column>
      <el-table-column prop="address" label="操作" show-overflow-tooltip>
      </el-table-column>
    </el-table>
    <!-- 弹框 -->
    <el-dialog title="收货地址" :visible.sync="dialogTableVisible" width="80%">
  <el-form :model="form">
    <el-form-item label="菜单名称" :label-width="formLabelWidth">
      <el-input v-model="form.name" autocomplete="off"></el-input>
    </el-form-item>
    <el-form-item label="菜品路径" :label-width="formLabelWidth">
      <el-input v-model="form.name" autocomplete="off"></el-input>
    </el-form-item>
     <el-form-item label="组件" :label-width="formLabelWidth">
      <el-input v-model="form.name" autocomplete="off"></el-input>
    </el-form-item>
     <el-form-item label="商品图标" :label-width="formLabelWidth">
      <el-input v-model="form.name" autocomplete="off"></el-input>
    </el-form-item>
    <el-form-item label="商品图标" :label-width="formLabelWidth">
        <el-button>是</el-button>
        <el-button type="primary">否</el-button>
    </el-form-item>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button @click="dialogFormVisible = false">取 消</el-button>
    <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
  </div>
</el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return { 
      dialogTableVisible: false,
      dialogFormVisible: false,
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
      formLabelWidth: "120px",
    };
  },
  mounted() {},

  methods: {},
};
</script>

<style></style>
